package com.example.eshop_ssm.entity;


import java.io.Serializable;
import java.util.List;

public class TbTypeInfo implements Serializable {

  private Long typeId;
  private String typeName;
  private Long parentId;
  private List<TbTypeInfo> tbType; //自相关 查询连级类型下拉框 一对多
  public TbTypeInfo(){

  }

  public TbTypeInfo(Long typeId, String typeName, Long parentId, List<TbTypeInfo> tbType) {
    this.typeId = typeId;
    this.typeName = typeName;
    this.parentId = parentId;
    this.tbType = tbType;
  }

  public List<TbTypeInfo> getTbType() {
    return tbType;
  }

  public void setTbType(List<TbTypeInfo> tbType) {
    this.tbType = tbType;
  }

  public Long getTypeId() {
    return typeId;
  }

  public void setTypeId(Long typeId) {
    this.typeId = typeId;
  }


  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }


  public Long getParentId() {
    return parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  @Override
  public String toString() {
    return "TbType{" +
            "typeId=" + typeId +
            ", typeName='" + typeName + '\'' +
            ", parentId=" + parentId +
            ", tbType=" + tbType +
            '}';
  }
}
